package org.hwadee.entity;

import org.springframework.stereotype.Component;

@Component
public class Category {
    /* 分类ID */
    private Integer categoryId;
    /* 分类名称 */
    private String categoryName;
    /* 分类描述 */
    private String description;
    /**
     * 分类状态
     * 0表示分类已删除，1表示分类未删除
     */
    private Integer categoryStatus;

    public Category() {
    }

    public Category(Integer categoryId, String categoryName, String description, Integer categoryStatus) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.description = description;
        this.categoryStatus = categoryStatus;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getCategoryStatus() {
        return categoryStatus;
    }

    public void setCategoryStatus(Integer categoryStatus) {
        this.categoryStatus = categoryStatus;
    }

    @Override
    public String toString() {
        return "Category{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", description='" + description + '\'' +
                ", categoryStatus=" + categoryStatus +
                '}';
    }
}
